﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TwoCols.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TinyPMS_Jerusalem.Models.DBModel.Property>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	我借出的物品
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="WidgetTitleContent" runat="server">
	我借出的物品
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

	<table cellpadding="0" cellspacing="0" class="datatable">
    <thead>
		<tr>
			<th></th>
			<th>
				物品名称
			</th>
			<th>
				物品分类
			</th>
			<th>
				物品分类标签
			</th>
			<th>
				物品最大续借次数
			</th>
			<th>
				已续借次数
			</th>
			<th>
				物品标记价格
			</th>
			<th>
				物品一次借出最长时间（天）
			</th>
		</tr>
    </thead>

	<% foreach (var item in Model) { %>
	
		<tr>
			<td>
				<%= Html.ActionLink("详细信息", "Details", new { id=item.ID }) %> |
				<%= Html.ActionLink("归还物品", "Return", new { id=item.ID })%> |
				<%= Html.ActionLink("续借物品", "Renew", new { id=item.ID })%>
			</td>
			<td>
				<%= Html.Encode(item.Name) %>
			</td>
			<td>
				<%= Html.Encode(item.Category) %>
			</td>
			<td>
				<%= Html.Encode(item.Tags) %>
			</td>
			<td>
				<%= Html.Encode(item.MaxRenewCount) %>
			</td>
			<td>
				<%= Html.Encode(item.RenewCount) %>
			</td>
			<td>
				<%= Html.Encode(item.Price) %>
			</td>
			<td>
				<%= Html.Encode(item.Duration) %>
			</td>
		</tr>
	
	<% } %>

	</table>

</asp:Content>

